package com.fastjrun.eladmin.itrms.mapstruct;

import com.fastjrun.eladmin.itrms.dto.ProjectEnvironmentDTO;
import com.fastjrun.eladmin.itrms.entity.RmsProjectEnvironment;
import com.fastjrun.eladmin.itrms.vo.ProjectEnvironmentVO;
import org.mapstruct.DecoratedWith;
import org.mapstruct.InjectionStrategy;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper(componentModel = "spring", injectionStrategy = InjectionStrategy.CONSTRUCTOR)
@DecoratedWith(RmsProjectEnvironmentMapperDecorator.class)
public interface RmsProjectEnvironmentMapper {
    RmsProjectEnvironmentMapper INSTANCE = Mappers.getMapper(RmsProjectEnvironmentMapper.class);

    ProjectEnvironmentVO toVO(RmsProjectEnvironment entity);

    List<ProjectEnvironmentVO> toVO(List<RmsProjectEnvironment> entityList);

    RmsProjectEnvironment toEntity(ProjectEnvironmentDTO dto);

}
